package com.cdd.common.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 签别表
 */
@Data
@TableName("app_draw_lots")
public class AppDrawLots implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer lotsId;//签类主键

    @NotNull(message = "灵签编号不能为空")
    private Integer number;//签序号

    private String name;//签名

    @TableField(exist = false)
    private String nick;//昵称

    @TableField(exist = false)
    private Integer userId;//用户id

    private String content;//签内容

    private Integer type;//签别

    private String typeName;//签别名称

    private String decrypt;//解签

    private Integer expressSuccessRate;//告白成功率

    private Integer compoundingRate;//分手复合率

    private Integer happyRate;//幸福甜蜜率

    private Integer deleted;//是否删除(0正常 1删除)

    private Date createTime;//创建时间

}
